[StructLayout(LayoutKind.Sequential)]
public class KBDLLHOOKSTRUCT
{
public int vkCode;
public int scanCode;
public int flags;
public int time;
public IntPtr dwExtraInfo;
}
Private Class KBDLLHOOKSTRUCT
Private vkCode As Integer
Private scanCode As Integer
Private flags As Integer
Private time As Integer
Private dwExtraInfo As Integer
End Structure
Added by Senthamil.
Changed to class to get the correct marshalling in SetWindowsHookEx